| Conditions | 1 |
| Total Lines | 15 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | |||
| 38 | function prepareFrame(checkout_url) { |
||
| 39 | const ifrm = document.createElement("iframe"); |
||
| 40 | let url = new URL(checkout_url); |
||
| 41 | |||
| 42 | ifrm.setAttribute("src", url.href); |
||
| 43 | ifrm.setAttribute("id", 'bSecurePaymentPluginEmbeddedIframe'); |
||
| 44 | ifrm.setAttribute("name", 'bSecurePaymentPluginEmbeddedIframe'); |
||
| 45 | ifrm.style.position = "absolute"; |
||
| 46 | ifrm.style.border = "none"; |
||
| 47 | ifrm.style.top = "0"; |
||
| 48 | ifrm.style.left = "0"; |
||
| 49 | ifrm.style.width = "100%"; |
||
| 50 | ifrm.style.height = "100%"; |
||
| 51 | document.getElementById("bSecurePaymentPluginContainer").appendChild(ifrm); |
||
| 52 | } |
||
| 53 | |||
| 65 | }; |